package cn.dduan.fool.runnable;

import lombok.extern.slf4j.Slf4j;

/**
 * 实现 java.lang.Runnable 接口，实现run方法
 * 
 * @author dduan
 * @version 1.0       
 * @date 2023/3/17
 */
@Slf4j
public class MyRunnable implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            Thread currentThread = Thread.currentThread();
            log.info("{} : {}", currentThread.getName(), i);
            log.info("Runnable-分支线程：{}", i);
        }
    }
}
